import request from '@/utils/request'

// 查询列表
export function listPaymentAccount(query) {
  return request({
    url: '/aipay/apiAccount/list',
    method: 'get',
    params: query
  })
}

export function listPaymentAccountByType(query) {
  return request({
    url: '/aipay/apiAccount/type',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getPaymentAccount(id) {
  return request({
    url: '/aipay/apiAccount/' + id,
    method: 'get'
  })
}

// 新增
export function addPaymentAccount(data) {
  return request({
    url: '/aipay/apiAccount',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePaymentAccount(data) {
  return request({
    url: '/aipay/apiAccount',
    method: 'put',
    data: data
  })
}

// 删除
export function delPaymentAccount(id) {
  return request({
    url: '/aipay/apiAccount/' + id,
    method: 'delete'
  })
}
